package com.demo.aop.simple;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * 描述:用作织入通知
 *
 * @author lida
 * @time 2019/10/22 16:56
 */
public class AgentDecorator implements MethodInterceptor {
	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {
		System.out.print("James ");
		Object re = invocation.proceed();
		System.out.print("!");
		return re;
	}
}
